package com.app.asktom.impl;

public interface ImplHttp {
	
	/**
	 * Set parameter for post request
	 * @param key
	 * @param value
	 */
	public void setPostParam(String key, String value);
	
	/**
	 * Set parameter for get request
	 * @param key
	 * @param value
	 */
	public void setGetParam(String key, String value);
	
	/**
	 * Set true if POST request else false for GET request
	 * @param isPost
	 */
	public void setPost(boolean isPost);
	
	/**
	 * Set url for request 
	 * @param url
	 */
	public void setUrl(String url);
	
	/**
	 * Start to send request
	 */
	public void sendRequest();
	
	/**
	 * Get response 
	 * @return response String
	 */
	public String getResponse();
}
